﻿using System;
using System.Collections;
using System.Collections.Generic;
using DG.Tweening;
using UnityEngine;
using UnityEngine.UI;

public class mySlider : MonoBehaviour
{
    public Slider slider;
    private void Start()
    {
        slider = transform.GetComponent<Slider>();
        //DOTween.To(() => 0, x => slider.value = x, 1, 10).SetEase(Ease.Linear);
        slider.DOValue(1, 10).SetEase(Ease.InCirc);
    }
}
